<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});
	
	//后台路由组 登录后才 可以进入
	Route::group(['middleware'=>'ALogin'],function(){
//后台首页
Route::get('/admin/index','Admin\AdminController@index');

//隐式控制器路由

//后台用户管理
Route::controller('/admin/user','Admin\UserConteroller');
	
	});

//后台登录
Route::get('/admin/login','Admin\LoginController@login');
Route::post('/admin/login','Admin\LoginController@login');

